﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <string.h>
using namespace std;

class Solution {
public:
    vector<int> getRow(int rowIndex) {
        vector<int> arr;
        arr.push_back(1);
        int size = 1;
        for (int i = 1; i <= rowIndex; i++)
        {
            size++;
            vector<int> tmp;
            for (int j = 0; j < size; j++)
            {
                if (j == 0 || j == size - 1)
                {
                    tmp.push_back(1);
                }
                else tmp.push_back(arr[j - 1] + arr[j]);
            }
            arr = tmp;
        }
        return arr;
    }
};

int main()
{
    return 0;
}